package promote.brozen.algorithm.tree.balance.bpt;

import lombok.Getter;
import lombok.Setter;

/**
 * @author Brozen
 * @date 2020/1/13 7:21 PM
 */
@Getter
@Setter
public class BPlusTreeDataChainNode<K extends Comparable<K>> {

    private BPlusTreeNode<K> node;

    private BPlusTreeChildChainNode<K> prev;

    private BPlusTreeChildChainNode<K> next;

    private K key;

    public BPlusTreeDataChainNode(BPlusTreeNode<K> node, K key) {
        this.node = node;
        this.key = key;
    }

    @Override
    public String toString() {
        return "Data[" + key + "]";
    }
}
